import mongoose from "mongoose";

export default async () => {
    // 连接mongodb
    const config = useRuntimeConfig();
    await mongoose.connect(config.mongodbUri);
};